package com.lpf.composite;

// 叶子节点 - 文件类
class File extends FileSystemComponent {
    private int size;

    public File(String name, int size) {
        super(name);
        this.size = size;
    }

    @Override
    void showDetails() {
        System.out.println("File: " + name + ", Size: " + size + " KB");
    }
}
